﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<Bastanteo.Domain.Rol>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="98%" border=0 cellpadding="0" cellspacing="0" align="center">
	    <tr align="center">		
		    <td class="titulon" valign="middle">Mantenimiento de Roles</td>
	    </tr>			
    </table>
    <br />
    <form action="/Rol/Buscar" method="post" class="tdlabelForm">
    <table align="center" border="0" cellpadding="1" cellspacing="1" >
        <tr>
            <td class="tdlabelForm">Rol&nbsp;:&nbsp;
                <input name="Nombre" type="text" style="text-transform :uppercase" Class="tdlabelForm" width="200px" />&nbsp;&nbsp;
            </td>
            <td class="tdlabelForm">
                <input type="submit" value="Buscar" class="btnout" width ="80px" />
            </td>
        </tr>
    </table>

    </form>
    <center> <p style="color:Blue"><%: TempData["mensaje"] %></p> </center>
    <table class="tABLAxml" align="center">
        <tr>
            <th Class="tituloXML"></th>
            <th Class="tituloXML" width="80px">Código</th>
            <th Class="tituloXML" width="250px">Descripción</th>
        </tr>
    <% foreach (var item in Model) { %>
        <tr>
            <td Class="celdaXML">
                <%: Html.ActionLink("Modificar", "Modificacion", new { Codigo = item.RolId }) %> |
                <%: Html.ActionLink("Ver", "Visualizacion", new { Codigo = item.RolId })%> |
                <%: Html.ActionLink("Eliminar", "Eliminacion", new { Codigo = item.RolId })%>
            </td>
            <td Class="celdaXML" align=center>
                <%: item.RolId %>
            </td>
            <td Class="celdaXML">
                <%: item.RolDescripcion %>
            </td>
        </tr>
    <% } %>
    <tr>
        <td colspan=3 class="celdaLink" >
            <%: Html.ActionLink("Crear", "Creacion") %>
        </td>
    </tr>
    </table>


</asp:Content>

